package org.example.mallweb.mallservice.service;

import org.example.mallcommon.result.ReturnResult;

/**
 * @author 韩先楚
 * 点赞服务接口
 */
public interface FavorityService {


    //根据用户Id判断是否点赞
    public Integer isFavority(Integer userId, Long articleId);

    /**
     * 点赞或取消点赞 (status: 1-点赞, 0-未点赞)
     */
    ReturnResult<String> favorite(Integer status, Integer userId, Long articleId);
}
